gslLibPath = /opt/local/lib/
CreaturePath = ../Creatures/Creature/

Test: Test.cpp  CellularAutomation
	g++ -framework GLUT -framework OpenGL Test.cpp Cell.o CellularAutomation.o Creature.o -I/opt/local/include $(gslLibPath)libgsl.a -o Test

CellularAutomation: CellularAutomation.cpp Cell Creature
	g++ -c CellularAutomation.cpp -I/opt/local/include 

Creature: $(CreaturePath)Creature.cpp $(CreaturePath)Creature.h
	g++ -c $(CreaturePath)Creature.cpp

Cell: Cell.cpp Cell.h
	g++ -c Cell.cpp

clean: 
	rm -f *.o